import { ElNotification } from 'element-plus'
export enum MessageType {
  success = 'success',
  error = 'error',
  warning = 'warning',
  info = 'info'
}
export const message = (message: string, type: MessageType, title: string = '提示') => {
  ElNotification({
    title: title,
    message: message,
    type: type,
    duration: 2000
  })
}
